package com.nondo.dean.product.model;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.product.domain.ProductBom;

public class ProductBomBean {
    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 产品编码
     */
    private String productCode;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 上级产品编码
     */
    private String parentProductCode;

    /**
     * 组件数量
     */
    private String bomUnit;

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the productCode
     */
    public String getProductCode() {
        return productCode;
    }

    /**
     * @param productCode the productCode to set
     */
    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    /**
     * @return the productName
     */
    public String getProductName() {
        return productName;
    }

    /**
     * @param productName the productName to set
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * @return the parentProductCode
     */
    public String getParentProductCode() {
        return parentProductCode;
    }

    /**
     * @param parentProductCode the parentProductCode to set
     */
    public void setParentProductCode(String parentProductCode) {
        this.parentProductCode = parentProductCode;
    }

    /**
     * @return the bomUnit
     */
    public String getBomUnit() {
        return bomUnit;
    }

    /**
     * @param bomUnit the bomUnit to set
     */
    public void setBomUnit(String bomUnit) {
        this.bomUnit = bomUnit;
    }

    public static ProductBomBean covertToBean(ProductBom productBom) {
        ProductBomBean productBomBean = new ProductBomBean();
        BeanUtils.copy(productBom, productBomBean);
        return productBomBean;
    }

}
